/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LXW
 * Date: 2022-04-07
 * Time: 17:19
 */
public class Demo1 {
    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
           for(int i = 0; i < 100; i++) {
               System.out.println(Thread.interrupted());
           }
        });
        t1.start();
        t1.interrupt();
    }
}
